package com.retirement.activity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.retirement.audit.domain.OldAudit;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author lijy
 * @since 2023-12-25
 */
@Data
public class OldActivityVo {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("活动标题")
    private String title;

    @ApiModelProperty("活动开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty("活动结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    @ApiModelProperty("活动地点")
    private String location;

    @ApiModelProperty("申请人id")
    private String applicantId;

    @ApiModelProperty("申请人姓名")
    private String name;

    @ApiModelProperty("申请人联系电话")
    private String iphone;

    @ApiModelProperty("审核状态 0未审核 1审核通过 2审核中 3审核未通过")
    private String state;

    @ApiModelProperty("活动状态 0未开始 1进行中 2已结束")
    private String activityState;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("图片地址")
    private String image;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("编辑时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    List<OldAudit> oldAuditList = new ArrayList<>();

}
